Subscribe Us

Responsive Advertisement

Advertisement

URI Online Judge | 2982 The Strike Stops or Continues? solution in cpp

 

uri 2982 solution in cpp

by ujjal roy



#include<bits/stdc++.h>

using namespace std;

main()

{

    int t,g=0,v=0,n;

    char a[20];

    cin>>t;

    while(t--)

    {

        cin>>a>>n;

        if(a[0]=='G') g=g+n;

        else v+=n;

    }


    if(v>=g) cout<<"A greve vai parar."<<endl;

    else cout<<"NAO VAI TER CORTE, VAI TER LUTA!"<<endl;

    return 0;

}


Post a Comment

0 Comments